<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css"></style>
</head>
<body>
    <h1>JS 数组</h1>
    <hr>

    <script>
        var list = []; 
        
        list[0] = '艳艳1';
        list[12] = '艳艳12';
        // list[] = '艳艳666'; // NO
        list['name'] = '晴晴';
        
        console.log(list);
        console.log(typeof(list));
        console.log(list.constructor);
        console.log(list.length);
        console.log(list[0]);
        
        document.write(list);

        // 多维数组
        var arr = [[1, 2, 3],['A', 'B', 'C'],['a', 'b', 'c']];
        console.log(arr);
        console.log(arr[1]);
        console.log(arr[2][1]);

    </script>
</body>
</html>